package activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;

import com.example.administrator.ci_edit.EditActivity;
import com.example.administrator.ci_edit.R;

/**
 * Created by hello world on 2017/7/13.
 */

public class PoemShowActivity extends AppCompatActivity {
    //private ImageView imageView;
    private Button button;
    @Override

    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_poem_show);
        //imageView=(ImageView)findViewById(R.id.image_view);

        Intent intent=getIntent();
        final int mengpangid=intent.getIntExtra("extra_mengid",0);

        button=(Button)findViewById(R.id.writebtn);
        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                //在这里输入要跳转的界面
                Intent intent=new Intent();
                intent.setClass(PoemShowActivity.this,EditActivity.class);
                intent.putExtra("extea_id",mengpangid);
                PoemShowActivity.this.startActivity(intent);
            }
        });
    }
}
